package com.zyy.proxy.demo01;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/07/26 22:20
 */
public class HouseProxy implements Rent {
    private House house;

    public HouseProxy(House house) {
        this.house = house;
    }

    @Override
    public void rent() {
        seeHouse();
        house.rent();
        agreement();
        fee();
    }

    private void seeHouse() {
        System.out.println("看房");

    }

    private void agreement() {
        System.out.println("签合同");

    }

    private void fee() {
        System.out.println("收费");

    }

}
